package com.jye.rseven.service;

import com.jye.rseven.domain.Sharing;

import java.util.List;

public interface SharingService {

    //根据uId进行查询
    Sharing findSharingByuId(int uId);

    //查询推广表所有数据
    List<Sharing> findAllSharing(int skip,int limit);

    //添加数据到推广表
    String addSharing(Sharing sharing);

    int updateSharing(Sharing sharing);

    //通过分享码进行查询
    Sharing findSharingByShareCode(String shareCode);

    //通过用户Id和课程Id查询分享码
    String findShareCodeByuIdAndCId(int uId,int cId);

}
